// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
    my_tauri_app_lib::run()
}



// use tauri::{Manager, Runtime};
// use std::fs::OpenOptions;
// use std::io::Write;

// #[tauri::command]
// fn log_speech(message: String) {
//     let mut file = OpenOptions::new()
//         .append(true)
//         .create(true)
//         .open("speech_log.txt")
//         .unwrap();
        
//     writeln!(file, "{}", message).unwrap();
// }

// fn main() {
//     tauri::Builder::default()
//         .invoke_handler(tauri::generate_handler![log_speech])
//         .setup(|app| {
//             #[cfg(debug_assertions)]
//             {
//                 let window = app.get_window("main").unwrap();
//                 window.open_devtools(); // 开发时自动打开调试工具
//             }
//             Ok(())
//         })
//         .run(tauri::generate_context!())
//         .expect("error while running tauri application");
// }